﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUsers.aspx.cs" Inherits="AddUsers" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户注册</title>
    <link href="css/allocation.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrapper">
        <div id="mainContent">
            <div id="allocationTable" class="dhd_table">
                <form id="form1" runat="server">
                    <h1>
                        用户注册</h1>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="15%">
                                用户名：</td>
                            <td width="85%">
                                
                                    <asp:TextBox ID="txtName" runat="server" Width="150px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>
                                密码：</td>
                            <td>
                                
                                    <asp:TextBox ID="txtPwd" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvPwd" runat="server" ControlToValidate="txtPwd"
                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>
                                确认密码：</td>
                            <td>
                                
                                    <asp:TextBox ID="reTxtPwd" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                                    <asp:CompareValidator ID="comValidPwd" runat="server" ControlToCompare="txtPwd" ControlToValidate="reTxtPwd"
                                        ErrorMessage="密码不一致！"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="height: 30px">
                                真实姓名：</td>
                            <td style="height: 30px">
                                
                                    <asp:TextBox ID="txtTrueName" runat="server" Width="150px"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvTrueName" runat="server" ControlToValidate="txtTrueName"
                                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>
                                所在部门：</td>
                            <td>
                                <asp:DropDownList ID="ddlDep" runat="server" Width="150px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>
                                用户类型：</td>
                            <td>
                                <asp:DropDownList ID="ddlRole" runat="server" Width="150px">
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>
                                用户电话：</td>
                            <td>
                                <asp:TextBox ID="txtPhone" runat="server" Width="150px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                电子邮件：</td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" Width="150px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="格式不正确！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                
                                    <asp:Button ID="btnTijiao" runat="server" OnClick="btnTijiao_Click" Text="提  交" />
                                    <asp:Button ID="btnCancel" runat="server" Text="取  消" OnClick="btnCancel_Click" 
                                        CausesValidation="False" /></td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <!-- end of mainContent -->
        <!-- end of mainContent -->
        <div id="copyright">
            <p>
                Copyright&copy; 2009-2010 All rights reserved.<strong>桂林供电局</strong></p>
        </div>
    </div>
</body>
</html>
